<!--<div class="span-20">
  <br>
  <%= link_to '注册', new_user_path %>
  <br>
  <% if current_user %>
  欢迎你 <%= current_user.email %>&nbsp;
  <%= link_to '注销', user_session_path, :method => :delete %>
  <% end %>
  <%= link_to '登录', new_user_session_path %>

  <br>
  <%= link_to '商户注册', new_customer_path %>
  <br />
  <% if current_customer %>
  商户:<%= current_customer.email %>
  <br />
  <%= link_to '菜肴管理', dishes_path %>
  <% else %>
  <%= link_to '商户登录', new_customer_session_path %>
  <% end %>
</div>-->
<% @dishes.each_with_index do |dish,index| %>
<% if (index+1)%4 == 0 %>
<div class="span-5 last">
  <% else %>
  <div class="span-5">
    <% end %>
    <%= link_to dish do%>
      <%= image_tag dish.image.url(:thumb) %>
    <% end %>
    <br />
    菜名:<%= dish.name %><br />
    菜系:<%= dish.dish_type.type_name %><br />
    原料:<%= dish.tag_list %>
  </div>
  <% end %>

  <br />
<div class="prefix-12 span-8 last">
	<%= will_paginate @dishes %>
</div>
  